<?php
    class Form_rolessearch extends Zend_Form {
        
        
        public function init () {
            $controller = Zend_Controller_Front::getInstance();
            
            $searchword = $this->createElement('text', 'searchword');
            $searchword->addFilter('StringTrim');
            $searchword->setAttribs(array('class'=>'inputStyle','maxlength'=>'80','order'=>1));
            $this->addElement($searchword);
            
            $BtnSearch = $this->createElement('submit', 'BtnSearch');
            $BtnSearch->setAttribs(array('order'=>2,'class'=>"listStyle"));
            $BtnSearch->setLabel('Buscar');
            $this->addElement($BtnSearch);
            
            $cancel = $this->createElement('reset','cancel', array('Label' =>'Cancel','onclick'=>'closeWin()'));
            $this->addElement($cancel);
            
            $this->setElementDecorators(array(
                array('ViewHelper'),
                array('Errors'),
            ));
        }
    }
?>